package com.liuda.workbench.service;

import com.liuda.workbench.domain.Activity;
import com.liuda.workbench.domain.Count;

import java.util.List;
import java.util.Map;

public interface ActivityService {
    int createActivity(Activity activity);
    List<Activity> queryActivityByCondition(Map map);
    int queryCountOfActivityByCondition(Map map);
    int deleteByIds(String[] ids);
    Activity queryActivityById(String id);
    int updateById(Activity activity);
    List<Activity> selectAll();
    List<Activity> selectByClueIdForDetail(String clueId);
    List<Activity> selectByIds(String[] ids);
    List<Activity> selectByIdsForDetail(String[] ids);
    int insertActivities(List<Activity> activityList);
    Activity queryActivityDetailById(String id);
    List<Activity> queryActivityByClueId(String clueId);
    List<Activity> queryActivityNotInClueId(String clueId);
    List<Activity> queryActivityByLikeAndClueId(String name ,String clueId);
    List<Activity> queryActivityByLikeAndNotInClueId(String name, String clueId);

    List<Activity> selectByLikeForDetail(String name);

    List<Activity> selectByContactsId(String contactsId);

    List<Count> getActivityCountByOwner();
}
